import { defineComponent, h } from '@vue/runtime-core'
import enemyImg from '../../assets/images/enemy.png'

export default defineComponent({
  props: {
    enemyInfo: {
      type: Object,
      default: {}
    }
  },
  render(ctx) {
    return h('Sprite', {
      texture: enemyImg,
      x: ctx.enemyInfo.x,
      y: ctx.enemyInfo.y,
      width: ctx.enemyInfo.width,
      height: ctx.enemyInfo.height
    })
  }
})
